import request from '@/utils/request'

export function showNormalOrderList(query) {
  return request({
    url: '/orders/normal/show',
    method: 'get',
    params: query
  })
}

export function showSpecialOrderList(query) {
  return request({
    url: '/orders/special/show',
    method: 'get',
    params: query
  })
}

export function showIntegralOrderList(query) {
  return request({
    url: '/orders/integral/show',
    method: 'get',
    params: query
  })
}

export function showWelfareOrderList(query) {
  return request({
    url: '/orders/welfare/show',
    method: 'get',
    params: query
  })
}

export function deleteBasicOrder(orderId) {
  return request({
    url: '/orders/basic/remove',
    method: 'get',
    params: { 'orderId': orderId }
  })
}

export function deleteIntegralOrder(orderId) {
  return request({
    url: '/orders/integral/remove',
    method: 'get',
    params: { 'orderId': orderId }
  })
}

export function deleteWelfareOrder(orderId) {
  return request({
    url: '/orders/welfare/remove',
    method: 'get',
    params: { 'orderId': orderId }
  })
}

export function updateBasicOrderProgress(data) {
  return request({
    url: '/orders/basic/progress',
    method: 'post',
    data
  })
}

export function updateIntegralOrderProgress(data) {
  return request({
    url: '/orders/integral/progress',
    method: 'post',
    data
  })
}

export function updateWelfareOrderProgress(data) {
  return request({
    url: '/orders/welfare/progress',
    method: 'post',
    data
  })
}

export function updateBasicOrderExpress(data) {
  return request({
    url: '/orders/basic/express',
    method: 'post',
    data
  })
}

export function updateIntegralOrderExpress(data) {
  return request({
    url: '/orders/integral/express',
    method: 'post',
    data
  })
}

export function updateWelfareOrderExpress(data) {
  return request({
    url: '/orders/welfare/express',
    method: 'post',
    data
  })
}

export function batchExportChosenNormal(params) {
  return request({
    url: '/orders/normal/export/chosen',
    method: 'post',
    params: params
  })
}

export function batchExportChosenSpecial(params) {
  return request({
    url: '/orders/special/export/chosen',
    method: 'post',
    params: params
  })
}

export function batchExportChosenIntegral(params) {
  return request({
    url: '/orders/integral/export/chosen',
    method: 'post',
    params: params
  })
}

export function batchExportChosenWelfare(params) {
  return request({
    url: '/orders/welfare/export/chosen',
    method: 'post',
    params: params
  })
}
